// 路由-相关模块
import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '@/views/Home'
import Layout from '@/views/Layout'
// import Play from '@/views/Play'
import Search from '@/views/Search'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: "/Layout",
  },
  {
    path: '/Layout',
    component: Layout,
    redirect: '/Layout/home',
    children: [
      {
        path: 'Home',
        component: Home,
        meta: {
          title:'首页'
        }
      },
      {
        path: 'Search',
        component: Search,
        meta: {
          title:'搜索'
        }
      }
    ]
  },
 
]



const router = new VueRouter({
  routes
})

export default router